cmake_minimum_required(VERSION 2.6)

project(MortalLouisDePois)

set(CMAKE_BUILD_TYPE Debug)
set(LIBS ${LIBS} .)

if(${UNIX})
    set(CMAKE_CXX_FLAGS "-std=c++0x")
    include_directories(Include/)
else()
    set(CMAKE_CXX_FLAGS "-std=c++0x -DWIN32")
    include_directories(Include/ C:/SFML)
endif()

file(GLOB
     baseFile
     source/*.cpp)

add_executable(game ${baseFile})

if(${UNIX})
  target_link_libraries(game dl sfml-system sfml-window sfml-graphics sfml-audio Box2D yaml shinygami-applejack shinygami-base)
else()
  target_link_libraries(game -LC:/SFML shinygami-applejack shinygami-base sfml-system sfml-window sfml-graphics sfml-audio Box2D yaml)
endif()
